{extend name="common/base"}

{block name="title"}Collect Page{/block}

{block name="stylesheet"}
<style>
    .summary {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }
</style>
{/block}

{block name="body"}
{include file="common/navbar"}
<div class="row">
    {include file="common/leftbar"}
    <div class="col-md-10">
        <ol class="breadcrumb">
            <li>我的收藏</li>
        </ol>
        {volist name="galleries" id="vo"}
        <div class="col-md-4">
            <div class="thumbnail" style="height: 540px">
                <a href="{:url('show', ['id' => $vo.id])}">
                    <img src="__ROOT__/uploads/{$vo.cover}" alt="galleries">
                </a>
                <div class="caption">
                    <h2>{$vo.name}</h2>
                    <p class="summary">{$vo.summary}</p>
                    <p><b>创建者：</b>{$vo.author}</p>
                    <p><b>创建时间：</b>{$vo.create_time}</p>
                    <p><b>上次修改：</b>{$vo.update_time}</p>
                    <p>
                        <a href="{:url('collect', ['id' => $vo.id])}" class="btn btn-warning">取消收藏</a>
                    </p>
                </div>
            </div>
        </div>
        {/volist}
    </div>
</div>
{/block}

{block name="script"}
<script>
    $('#collect').addClass('active')
</script>
{/block}
